<%@ page import="databeans.*"%>
<jsp:include page="../common/header.jsp" />

<script type="text/javascript" src="view/js/ui/ui.datepicker.js"></script>

<script type="text/javascript">
	$(document).ready(function() { 
		$("#datepicker").datepicker({maxDate: '+0D', dateFormat: 'yy-mm-dd', hideIfNoPrevNext: true});
		$(".ui-datepicker-trigger").attr('title','Choose a Date');
	});
</script>

<title>Carnegie Financial Services - Research Funds</title>
</head>

<body>
	<div id="container">
    	<div id="header">
        	<h2>Carnegie Financial Services</h2>
    		<jsp:include page="../common/top-menu.jsp" />
      </div>
        <div id="wrapper">
            <div id="content">
	              <div id="box" class="research">
	                <form id="form" action="customerResearchFund.do" method="post">
	                <jsp:include page="../common/messages.jsp"/>
	                  <fieldset id="research">
	                    <legend style="width: 254px; height: 20px">Research Fund </legend>
	                    <label for="txtFundId" class="label-long"> Fund Id : </label> 
	                    <select name="txtFundID" tabindex="1"  class="label-long">
						<%
						if(request.getAttribute("funds")!= null) {
						    Fund [] tempFunds = (Fund[])request.getAttribute("funds");
						    for (int i = 0; i < tempFunds.length ; i ++){    
						        Fund tempFund = tempFunds[i];
						%>
						  		  	<OPTION VALUE="<%= tempFund.getFundID() %>"><%=tempFund.getName() %></OPTION>
						<%
							}
						} else {    
						%>
						    		<OPTION VALUE="">Fund could not be retrieved</OPTION>
						<%
						}
						%>
						</SELECT>
						<Br/>&nbsp;<br/>
	                    <label for="txtType" class="label-long"> Research Type : </label>
	                     <select name="txtType" tabindex="2" class="label-long">
						    		<OPTION VALUE="WEEK" selected="selected">Last 7 Days</OPTION>
						    		<OPTION VALUE="ONE">Past 1 Month</OPTION>
						    		<OPTION VALUE="THREE">Past 3 Months</OPTION>
						    		<OPTION VALUE="HALF">Past 6 Months</OPTION>
						 </select>
	                    <br />
	                    <!-- 
	                    &nbsp;<br/>
	                    <label for="txtDate" class="label-long"> Date : </label>
	                    <input name="txtDate" type="text" tabindex="3" id="datepicker"/>
	                     -->
	                    <br />
	                  </fieldset>
	                  <div align="center">
	                  <input id="button1" name="Submit" type="submit" value="Research Fund" tabindex="4" />&nbsp;
	                  </div>
	                </form>
	            </div>
            </div>
            <jsp:include page="../common/sidebar.jsp" />
      </div>
        <jsp:include page="../common/footer.jsp" />
</div>
</body>
</html>
